#include "frmabout.h"
#include "ui_frmabout.h"

frmAbout::frmAbout(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::frmAbout)
{
    ui->setupUi(this);
}

frmAbout::~frmAbout()
{
    delete ui;
}

void frmAbout::on_btnOk_clicked()
{
    this->close();
}

void frmAbout::on_btnSchool_clicked()
{
    if(QMessageBox::information(this,"访问学校官网","是否访问学校官网？",QMessageBox::Yes|QMessageBox::No,QMessageBox::Yes)==QMessageBox::Yes)
        QDesktopServices::openUrl(QUrl(QString("https://www.aiit.edu.cn/")));
}
